package com.ruoyi.sj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sj.mapper.WqEweiShopMemberMapper;
import com.ruoyi.sj.domain.WqEweiShopMember;
import com.ruoyi.sj.service.IWqEweiShopMemberService;
import com.ruoyi.common.support.Convert;

/**
 * 用户 服务层实现
 * 
 * @author tyc@yanyu.com
 * @date 2018-11-28
 */
@Service
public class WqEweiShopMemberServiceImpl implements IWqEweiShopMemberService
{
	@Autowired
	private WqEweiShopMemberMapper wqEweiShopMemberMapper;

	/**
     * 查询用户信息
     * 
     * @param id 用户ID
     * @return 用户信息
     */
    @Override
	public WqEweiShopMember selectWqEweiShopMemberById(Integer id)
	{
	    return wqEweiShopMemberMapper.selectWqEweiShopMemberById(id);
	}
	
	/**
     * 查询用户列表
     * 
     * @param wqEweiShopMember 用户信息
     * @return 用户集合
     */
	@Override
	public List<WqEweiShopMember> selectWqEweiShopMemberList(WqEweiShopMember wqEweiShopMember)
	{
	    return wqEweiShopMemberMapper.selectWqEweiShopMemberList(wqEweiShopMember);
	}
	
    /**
     * 新增用户
     * 
     * @param wqEweiShopMember 用户信息
     * @return 结果
     */
	@Override
	public int insertWqEweiShopMember(WqEweiShopMember wqEweiShopMember)
	{
	    return wqEweiShopMemberMapper.insertWqEweiShopMember(wqEweiShopMember);
	}
	
	/**
     * 修改用户
     * 
     * @param wqEweiShopMember 用户信息
     * @return 结果
     */
	@Override
	public int updateWqEweiShopMember(WqEweiShopMember wqEweiShopMember)
	{
	    return wqEweiShopMemberMapper.updateWqEweiShopMember(wqEweiShopMember);
	}

	/**
     * 删除用户对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWqEweiShopMemberByIds(String ids)
	{
		return wqEweiShopMemberMapper.deleteWqEweiShopMemberByIds(Convert.toStrArray(ids));
	}

	/**
	 * 加入黑名单
	 * @param id
	 * @return
	 */
	@Override
	public int changeStatusById(String id) {
		return wqEweiShopMemberMapper.changeStatusById(id);
	}

	/**
	 * 移除黑名单
	 * @param id
	 * @return
	 */
	@Override
	public int changeStatus(String id) {
		return wqEweiShopMemberMapper.changeStatus(id);
	}


}
